from artifacts.base.artifacts_factory import ArtifactsFactory
from artifacts.evaluate.billet_evaluate import evaluate


def once_need_times(display=True):
    times = 0
    while True:
        times += 1
        artifacts = ArtifactsFactory.create_list()
        if evaluate(artifacts):
            if display:
                print(artifacts)
            return times
